/* 
    Document   : main
    Created on : 2016-6-14, 12:30:52
    Author     : iefreer
    Description:
        main styles for threejs online docs
*/

*{
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    background-color: #ffffff;
    margin: 0px;
    height: 100%;
    color: #555;
    font-family: '微软雅黑', serif;
    font-size: 14px;
    line-height: 18px;
    overflow: hidden;
}

h1 {
    margin-top: 30px;
    margin-bottom: 40px;
    margin-left: 20px;
    font-size: 25px;
    font-weight: normal;
}

h2 {
    color: #454545;
    font-size: 18px;
    font-weight: normal;

    margin-top: 20px;
    margin-left: 20px;
}

h3 {
    color: #666;
    font-size: 16px;
    font-weight: normal;

    margin-top: 20px;
    margin-left: 20px;
}

a {
    color: #2194CE;
    text-decoration: none;
}
a.done:before{
    content: '√';
    padding-right: 10px;
    color: green;
}

#panel {
    position: fixed;
    left: 0px;
    width: 260px;
    height: 100%;
    overflow: auto;
    background: #fafafa;
}

    #panel ul {
        list-style-type: none;
        padding: 0px;
        margin-left: 20px;
    }

#viewer {
    position: absolute;
    border: 0px;
    left: 260px;
    width: calc(100% - 260px);
    height: 100%;
    overflow: auto;
}

.filterBlock{
    margin: 20px;
    position: relative;
}
.filterBlock p {
    margin: 0;
}

#filterInput {
    width: 100%;
    padding: 5px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    border: 1px solid #dedede;
}

#filterInput:focus{
    border: 1px solid #2194CE;
}

#clearFilterButton {
    position: absolute;
    right: 6px;
    top: 50%;
    margin-top: -8px;
    width: 16px;
    height: 16px;
    font-size: 14px;
    color: grey;
    text-align: center;
    line-height: 0;
    padding-top: 7px;
    opacity: .5;
}

#clearFilterButton:hover {
    opacity: 1;
}

.filtered {
    display: none;
}

#panel li b {
    font-weight: bold;
}

/* mobile */

#expandButton {
    display: none;
    position: absolute;
    right: 20px;
    top: 12px;
    width: 32px;
    height: 32px;
}

    #expandButton span {
        height: 2px;
        background-color: #2194CE;
        width: 16px;
        position: absolute;
        left: 8px;
        top: 10px;
    }

    #expandButton span:nth-child(1) {
        top: 16px;
    }

    #expandButton span:nth-child(2) {
        top: 22px;
    }

@media all and ( max-width: 640px ) {
    h1{
        margin-top: 20px;
        margin-bottom: 20px;
    }
    #panel{
        position: absolute;
        left: 0;
        top: 0;
        height: 480px;
        width: 100%;
        right: 0;
        z-index: 100;
        overflow: hidden;
        border-bottom: 1px solid #dedede;
    }
    #content{
        position: absolute;
        left: 0;
        top: 90px;
        right: 0;
        bottom: 0;
        font-size: 17px;
        line-height: 22px;
        overflow: auto;
    }
    #viewer{
        position: absolute;
        left: 0;
        top: 56px;
        width: 100%;
        height: calc(100% - 56px);
    }
    #expandButton{
        display: block;
    }
    #panel.collapsed{
        height: 56px;
    }
}